home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / asmutil / delbut2.zip / DELBUT2.DOC < prev   
Text File  |  1988-07-19  |  1KB  |  29 lines

  1.         DELBUT V 2.1    (minor fix)    by J.E. Arkay 6/07/88        
  2.  
  3. Deletes all but a given filespec in one directory.  Useful for managing your
  4. RAM disk.
  5.  
  6.   *** TESTED, BUT NOT VERY MUCH *** *** TRY IT ON A SCRATCH DISK FIRST ***
  7.  
  8. Syntax:        [d:][\path\]DELBUT2 [d:][\path\]filename.ext
  9.  
  10. It will not delete a Hidden or Read-Only file; it can delete itself.
  11.  
  12. Its use of wildcards is now just like DOS (which sucks, but won't surprise you):
  13.   DELBUT ?????.?? matches ABCDE.12 and ABCD.12 and ABC.1 but not ABCD.123
  14.  
  15. For example, on our AT clone with extended memory, we use a DOS shell that runs
  16. faster from a RAM disk.  When we start AutoCAD or copy a 1.2 Meg floppy, we use
  17. DELBUT in a batch file to erase the RAM disk except for the DOS shell.
  18.  
  19. You can use it in a batch file where DEL *.* would give its 'Y/N' message and
  20. require a keypress.  Example to DEL D:\MY-DIR\*.*:
  21.  
  22.                 create a 1-byte file named X (DOS won't copy a zero-byte file)
  23.         COPY X D:\MY-DIR
  24.         DELBUT D:\MY-DIR\X
  25.  
  26. It returns Errorlevel=1 if nothing is deleted or an error occurs.
  27.  
  28. For instructions, TYPE or edit the .COM file or run it with no command line.
  29.